export const scatterColorOption = {
  color: [
    '#3e537d','#527aa4', '#639dc6','#6dc4ed', '#aae3f5','#dff2f5','#ebd2c7','#eba892','#eb7c5a','#e9481f','#b63b1f','#85361e','#62311f','#44221c',
    //'#e9481f', '#eb7c5a', '#eba892','#ebd2c7',red/blue'#3e537d','#527aa4', '#639dc6','#6dc4ed', '#aae3f5','#dff2f5',
  ],
  legend: {
    left:'90%',
    top: 'middle',
    orient: 'vertical',//纵向
    data: ['北京', '上海', '广州'],
    textStyle: {
      color: '#c2e6f3',
      fontSize: '12'
    },
    itemWidth:10,
    itemHeight:10,
  },
  grid: {
    top:'12%',
    bottom:'9%',
    left:'5%',
    right:'13%',
  },
  tooltip: {
    padding: 10,
    backgroundColor: '#222',
    borderWidth: 0,
    textStyle:{
      fontSize:13,
    },
    position:[10,0],
    formatter: function (obj) {
      var value = obj.value;
      return '<div style="border-bottom: 1px solid rgba(255,255,255,.3); font-size: 14px;padding-bottom: 7px;margin-bottom: 7px">'
        + obj.seriesName + ' ' + value[0] + '日：'
        + value[7]
        + '</div>'
        + schema[1].text + '：' + value[1] + '<br>'
        + schema[2].text + '：' + value[2] + '<br>'
        + schema[3].text + '：' + value[3] + '<br>'
        + schema[4].text + '：' + value[4] + '<br>'
        + schema[5].text + '：' + value[5] + '<br>'
        + schema[6].text + '：' + value[6] + '<br>';
    }
  },
  xAxis: {
    type: 'category',
    name: '日期',
    boundaryGap: false,//坐标轴两边留白策略,为 true时，标签和数据点都会在两个刻度之间。
    /* axisTick: {
       interval:0, //坐标轴刻度的显示间隔，在类目轴中有效。
     },*/
    data: ['1970-01-01','1970-01-02'],
    nameGap: 20,
    nameTextStyle: {
      color: '#52697a',
      fontSize: 12
    },
    splitLine: {
      show: false
    },
    axisLine: {
      lineStyle: {
        color:  '#52697a',
      }
    },
    axisLabel:{
      fontSize: 11
    }
  },
  yAxis: {
    type: 'value',
    name: 'AQI指数',
    //nameLocation: 'top',
    //nameGap:28,
    nameTextStyle: {
      color: '#52697a',
      fontSize: 12
    },
    axisLine: {
      lineStyle: {
        color: '#52697a',
      }
    },
    axisLabel:{
      fontSize: 11
    },
    splitLine: {
      show: false
    },
    min:0,
    max:'dataMax',
  },
  /*visualMap: [
    {
      left: 'right',
      top: '10%',
      dimension: 2,
      min: 0,
      max: 100,
      itemWidth: 15,
      itemHeight: 50,
      calculable: true,
      precision: 0.1,
      text: ['圆形大小：PM2.5'],
      textGap: 30,
      textStyle: {
        color: '#fff'
      },
      inRange: {
        symbolSize: [7, 70]
      },
      outOfRange: {
        symbolSize: [7, 70],
        color: ['rgba(255,255,255,.2)']
      },
      controller: {
        inRange: {
          color: ['#c23531']
        },
        outOfRange: {
          color: ['#444']
        }
      }
    }
  ],*/
  series: [
    {
      name: '北京',
      type: 'scatter',
      itemStyle: {},
      data: []
    },
    {
      name: '上海',
      type: 'scatter',
      itemStyle: {},
      data: []
    },
    {
      name: '广州',
      type: 'scatter',
      itemStyle: {},
      data: []
    }
  ]
}
